import type { App, Component } from "vue";

//已注册组件
const registeredTaskComponents: Record<string, () => Promise<any>> = {};

//注册动态组件
function registTaskComponents(
  componentName: string,
  component: () => Promise<any>,
) {
  registeredTaskComponents[componentName] = component;
}

export { registTaskComponents, registeredTaskComponents };
